package com.seven.plugin;

import org.apache.maven.plugin.AbstractMojo;
import org.apache.maven.plugin.MojoExecutionException;
import org.apache.maven.plugin.MojoFailureException;
import org.apache.maven.plugins.annotations.Mojo;
import org.apache.maven.plugins.annotations.Parameter;

/**
 * 自定义插件
 *
 * @author 第七人格
 * @date 2021/03/25
 */
@Mojo(name = "sevenPlugin")
public class SevenPlugin extends AbstractMojo {
    @Parameter
    String sex;
    @Parameter
    int age;

    public void execute() throws MojoExecutionException, MojoFailureException {
        getLog().info(String.format("seven sex=%s,age=%s" ,sex, age));
    }
}
